package cn.js.sip.rat.task.service;

import cn.js.sip.rat.system.dto.AjaxResult;
import cn.js.sip.rat.system.page.TableDataInfo;
import cn.js.sip.rat.system.service.BaseService;
import cn.js.sip.rat.task.entity.JobInfoEntity;

import java.util.List;

/**
 * @ClassName: cn.js.sip.rat.task.service
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-13   20:35
 */
public interface TaskService extends BaseService<JobInfoEntity> {

    void run(JobInfoEntity jobInfoEntity);

    TableDataInfo query(JobInfoEntity job);

    boolean checkCronExpressionIsValid(String cronExpression);

    AjaxResult deleteByIds(List<String> ids);

    void changeStatus(JobInfoEntity newJob);
}
